﻿using System;
using System.Data;

namespace ContractManagementSystem
{
    public partial class ReportTimesheet : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadReportTimesheet();
        }

        /// <summary>
        /// Function LoadReportTimesheet
        /// </summary>
        private void LoadReportTimesheet()
        {
            var crystalReportTimesheet = new CrystalReportTimesheet();
            crystalReportTimesheet.SetDataSource((DataTable)Session["ReportTimesheet"]);
            TimesheetCrystalReportViewer.ReportSource = crystalReportTimesheet;
            TimesheetCrystalReportViewer.DisplayGroupTree = false;
            TimesheetCrystalReportViewer.RefreshReport();
        }
    }
}
